<template>
  <div class="sundry_flock_container">
    <!-- 提示语 -->
    <h2 class="pt-4 pt-lg-5">知识渔交流QQ群</h2>
    <!-- 群号 -->
    <div class="content pt-lg-4">
      <div class="row">
        <div
          class="col-12 col-lg-6"
          v-for="(item, index) in flock"
          :key="index"
        >
          <div class="col-item p-3 p-lg-4 mt-3 mt-lg-4">
            <div class="title_box">
              <div class="title pb-2">
                <span>{{ item.title }}</span>
                <img v-if="item.isNew" src="@/assets/images/new.gif" alt="" />
              </div>
              <div class="subtitle">{{ item.subtitle }}</div>
            </div>
            <div class="number px-3 py-1 px-lg-4 py-lg-2">
              {{ item.number }}
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- 提示词 -->
    <div class="hint">交流群禁聊任何和学习无关的话题，发现即禁言！</div>
  </div>
</template>

<script>
export default {
  name: "SundryFlock",
  data() {
    return {
      flock: [
        {
          title: "前端互助群",
          isNew: true,
          subtitle: "讨论前端相关技术，暗号：知识渔",
          number: "247275373",
        },
      ],
    };
  },
};
</script>

<style lang="less" scoped>
@media screen and (max-width: 434px) {
  .sundry_flock_container {
    .number {
      margin-top: 14px;
    }
  }
}

.sundry_flock_container {
  padding-bottom: 40px;
  .hint {
    padding: 0 20px;
    font-size: 14px;
  }
  .content {
    padding-bottom: 30px;
    max-width: 1192px;
    margin: 0 auto;
    .col-item {
      position: relative;
      border-radius: 8px;
      margin: 0 20px;
      background-color: #fff;
      padding: 10px 14px;
      text-align: left;
      border: 1px solid #dee0e3;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      // font-size: 18px;
      .title {
        display: flex;
        align-items: baseline;
      }
      .number {
        border-radius: 30px;
        font-weight: 500;
        border: 1px solid var(--a-button-hover-color);
        color: var(--a-button-hover-color);
      }
    }
  }
}
</style>